package cn.ssm.petadopt.service;

import cn.ssm.petadopt.dto.AdminsLoginDTO;
import cn.ssm.petadopt.dto.PwdSettingDTO;
import cn.ssm.petadopt.dto.SelectPageDTO;
import cn.ssm.petadopt.dto.UserLoginDTO;
import cn.ssm.petadopt.entity.Admins;
import cn.ssm.petadopt.util.ResponseResult;

import javax.servlet.http.HttpSession;

/**
 * @Autheor: Sun俊仪
 * @Date: 2022 2022/12/17 14:33
 * @Name: PetSystem
 */
public interface AdminsService {

    ResponseResult loginA(AdminsLoginDTO adminsLoginDTO, HttpSession session);

    ResponseResult selectPage(SelectPageDTO selectPageDTO);

    ResponseResult updateA(Admins admin,HttpSession session);

    ResponseResult updatePwd(PwdSettingDTO pwdSettingDTO, HttpSession session);

    Integer uploadPic(Admins admin);

    ResponseResult addJudgeAdminName(String adminName);

    ResponseResult addOneAdmin(Admins admin);

    ResponseResult selectAdminById(Integer id);
}
